package cn.dakaqi.dao;

import cn.dakaqi.entities.ActivityAddress;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by chunyang on 2016/4/13.
 */
public interface ActivityAddressDao extends PagingAndSortingRepository<ActivityAddress, Long>, JpaSpecificationExecutor<ActivityAddress>
{
    List<ActivityAddress> findByMemberCode(String memberCode);
    Page<ActivityAddress> findByMemberCode(String memberCode, Pageable pageRequest);
}
